package com.zxl.feign;

import com.zxl.vo.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "address",path = "/address")
public interface AddressFeign {

    @RequestMapping("/list")
    List<Address> listByUid(@RequestParam("uid") Integer uid);

    @RequestMapping("/getById")
    Address getById(@RequestParam("id") Integer aid);

}
